package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 频道实体类
 */
@TableName("t_channel")
public class ChannelBean {
    /**编号*/
    @TableId(value = "pk_channelId",type = IdType.AUTO)
    private Integer channelId;
    /**频道名称*/
    @TableField("c_name")
    private String name;
    /**频道描述*/
    @TableField("c_description")
    private String description;
    /**主贴数量*/
    @TableField(exist = false)
    private Integer stickNum;

    public ChannelBean() {
    }

    public ChannelBean(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStickNum() {
        return stickNum;
    }

    public void setStickNum(Integer stickNum) {
        this.stickNum = stickNum;
    }

    @Override
    public String toString() {
        return "ChannelBean{" +
                "channelId=" + channelId +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", stickNum=" + stickNum +
                "}\n";
    }
}
